
<?	if(!isset($_SESSION['uid']))
	//////////////////////// NOT LOGGED
	echo "<div id='dashboard' class='unplugged'>", engine_get('control.public'), "secured login</div>";
	 
else {
	////////////////////////////////////////// LOGGED
	define("CENTRAL", "http://central.onedotonly.be/style/control.room/", true);
	
	////////////////////////////////////////// EXTENTION SETUP
	// Respective classing of engine CMS objects:
	// 1]	Window								>> root
	// 2]	Window elements						>> root >> win.asset
	// 3]	Dashboard							>> root
	// 4]	Dashboard elements ("extentions")	>> root >> dashboard.ext

?>
<div id="dashboard" class="plugged"></div>
<div id="dark" style="display:none;"></div>


<script type='text/javascript'>
	<?
	////////////////////////////////////////// WINDOW ELEMENTS
	include "dashboard._init.php";
	include "dashboard.win.php";
	include "dashboard._proto_.php";
	include "dashboard.input.php";
	include "dashboard.list.php";
	include "dashboard.float.php";
	include "dashboard.contr.php";
	?>
</script>

<script src="http://central.onedotonly.be/js/swfupload/swfupload.js" type="text/javascript"></script>
<script src="http://central.onedotonly.be/js/swfupload/extend.js" type="text/javascript"></script>
<script src="http://central.onedotonly.be/js/cropper/cropper.uncompressed.js" type="text/javascript"></script>

<script type='text/javascript'>
	
	<?
	////////////////////////////////////////// DASHBOARD EXTENTIONS
	include "dashboard.extend.php";
	?>

	////////////////////////////////////////// ACTIVATE THE ENGINE!
	dashboard.seed( <?= $DB->query_direct( "select json from moddump where ID=" . engine_get('dashboard.tools.id')) ?> );
	
	$('column_left').insert(new Win("init").request({tool:"object.init", action:"init"}) );
	//foo.comment("foo");

	win.contr.init();
	
	if(document.viewport.getHeight()*0.94 > $("container").getHeight())  $("container").setStyle({height:Math.floor(document.viewport.getHeight()*0.94)+"px"});
	
	////////////////////////////////////////// ACTIVATE EXTENTIONS
	$("dashboard.tools.btn").insert({ "before": new dashboard.ext.calendar.calbutton() });
	$("dashboard.tools.btn").insert({ "before": new dashboard.ext.admin.adminbutton() });
	
	
</script>

<? } ?>

</body>
</html>